﻿<Window x:Class="MetaDesigner.SiteColumnPicker"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
        xmlns:local="clr-namespace:MetaDesigner"
        Title="SiteColumnPicker" MinHeight="380" MinWidth="300" Height="450" Width="700" 
        WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner" Topmost="True" Closed="Window_Closed">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="50" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Label HorizontalAlignment="Center" HorizontalContentAlignment="Center"
               Grid.Row="0" Grid.Column="0" FontWeight="Bold"
               Padding="2" VerticalAlignment="Bottom" x:Name="scLabel">All Site Columns</Label>
        <ListView Grid.Row="1" Grid.Column="0" Margin="5" x:Name="AllColumns" 
                  SelectionChanged="AllColumns_SelectionChanged" SelectionMode="Single" />
        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
            <Button x:Name="SelectAll" Content="&gt;&gt;" ToolTip="Select All" Click="SelectAll_Click" IsEnabled="False" />
            <Label Height="50" />
            <Button x:Name="Select" Content="&gt;" ToolTip="Select" Click="Select_Click" IsEnabled="False" />
            <Label Height="20" />
            <Button x:Name="Deselect" Content="&lt;" ToolTip="Deselect" Click="Deselect_Click" IsEnabled="False" />
            <Label Height="50" />
            <Button x:Name="DeselectAll" Content="&lt;&lt;" ToolTip="Deselect All" Click="DeselectAll_Click" IsEnabled="False" />
        </StackPanel>
        <Label HorizontalAlignment="Center" HorizontalContentAlignment="Center"
               Grid.Row="0" Grid.Column="2" FontWeight="Bold"
               Padding="2" VerticalAlignment="Bottom">Selected Columns</Label>
        <ListView Grid.Row="1" Grid.Column="2" Margin="5" x:Name="SelectedCols" 
                  SelectionChanged="SelectedCols_SelectionChanged" SelectionMode="Single" />
        
        <Button Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" HorizontalAlignment="Center" HorizontalContentAlignment="Center"
                Width="200" Height="30" x:Name="submitButton" Content="Done!" Click="submitButton_Click" />
    </Grid>
</Window>
